using System.Web.Mvc;

namespace Web.Core.BootstrapperTask
{
    public class RegisterDefaultGlobalFilter : IBootstrapperTask
    {
        private readonly GlobalFilterCollection filters;
        public RegisterDefaultGlobalFilter(): this(GlobalFilters.Filters)
        {
        }

        internal RegisterDefaultGlobalFilter(GlobalFilterCollection filters)
        {
            this.filters = filters;
        }

        public void Execute()
        {
            filters.Clear();
            //filters.Add(new SkHandleErrorAttribute());
        }
    }
}